package main;

import entity.Baby;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BabyTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        Baby baby = (Baby) context.getBean("redBoy");
        baby.introduce();
    }
}
